package com.pig4cloud.pig.module.api.entity.agent;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 代理绑定管理用户对象 agent_user
 *
 * @author ruoyi
 * @date 2022-12-14
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("agent_user")
public class AgentUser implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 代理id
     */
    private Long agentId;

    @TableField(exist = false)
    private String agentName;
    /**
     * 系统管理员
     */
    private Long sysUserId;

    @TableField(exist = false)
    private String sysUserName;
    /**
     * 绑定微信用户id
     */
    private Long userId;

    @TableField(exist = false)
    private String nickName;

    @TableField(exist = false)
    private String faceUrl;

    /**
     * 用户类型
     */
    private Long userType;

    /**
     * 状态 0 - 禁用 1 - 正常
     */
    private Long state;

    /**
     * 是否是管理员 0 - 不是  1 - 是
     */
    private Long isAdmin;

    @TableField(exist = false)
    private String password;

    @TableField(exist = false)
    private String userName;

    @TableField(exist = false)
    private String email;

    @TableField(exist = false)
    private String phoneNum;

    @TableField(exist = false)
    private String relName;


}
